package com.mairuide.bill.information;

import com.mairuide._frame.base.BaseController;
import com.mairuide.entity.Result;
import com.mairuide.entity.StatusCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @Description
 * @auther 刘中华
 * @create 2019-06-04 15:02
 */
@RequestMapping("/person_info")
@Controller
public class PersonInformationController extends BaseController {
    //案件对象接口
    @Autowired
    PersonInformationService personInformationService;

    //保存特殊日期
    @RequestMapping("queryPersonInfoByNameOrIdNumber")
    @ResponseBody
    public Result save(@RequestParam(required = false,value ="keyword" ) String  keyword){
        List<PersonInformation> informationList = personInformationService.queryPersonInformationByPersonNameOrIdNumber(keyword);
        return new Result(true, StatusCode.OK,"查询成功",informationList );
    }

}
